//
//  SylViewController.m
//  dogBook
//
//  Created by Mac-oschina on 16/12/14.
//  Copyright © 2016年 黄辉. All rights reserved.
//

#import "SylViewController.h"

@interface SylViewController ()

@end

@implementation SylViewController





-(void)buttonPressed{
    UIAlertController *con = [UIAlertController alertControllerWithTitle:@"温习提示" message:@"尼玛炸了" preferredStyle:UIAlertControllerStyleActionSheet];
    UIAlertAction*act1 = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
    
    UIAlertAction *act2 = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:nil];
    [con addAction:act1];
    [con addAction:act2];
    [self presentViewController:con animated:YES completion:nil];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
